#include <iostream>
#include <stdio.h>
#include "log_writer.h"


using namespace std;
using namespace andrew::tools::log;


int main()
{
	log_writer writer;
	writer.init(0,"/data0/pengdong/000/myproj/linuxopen/logs/src/");
	writer.write("hello this is my log");
	int i= 10;
	writer.record_time_begin("-----time   begin-----");
	while(i--)
	{

		writer.write("log record ++");
	//	usleep(10);
	}
	writer.record_time_end("-----time end------");

		
	return 0;
}
